import java.util.Scanner;

public class Main1078 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int x=sc.nextInt();
        double s=0;
        int i=1;
        while (s<=x){
            s=s+1.0/i;
            i++;
        }
        System.out.println(i-1);
    }
}
